package com.tangkun.environment.entity.token;


import com.tangkun.environment.entity.base.BaseModel;

import java.util.List;

/**
 * Created Time: 2017/3/18.
 * <p>
 * Author:tangkun
 * <p>
 * 功能：客户端授权(登录用户)
 */
public class CurrentSessionReturn extends BaseModel {

    public CurrentSession result;

    public static class CurrentSession {

        /**
         * userName : 12345678900
         * role : 0
         * clientType : 1
         * clientId : app
         * permissions : ["client","loginuser","医生"]
         * grantTime : 2017-03-19 07:07:40
         * userId : 14
         * tenantId : 1
         * impersonatorUserId : null
         * impersonatorTenantId : 1
         * multiTenancy : {"isEnabled":false,"resolvers":["Abp.Web.MultiTenancy.DomaStringenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpHeaderTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpCookieTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null"]}
         * multiTenancySide : 1
         */

        public String userName;
        public String role;
        public String clientType;
        public String clientId;
        public String grantTime;
        public String userId;
        public String tenantId;
        public String impersonatorUserId;
        public String impersonatorTenantId;
        public MultiTenancyBean multiTenancy;
        public String multiTenancySide;
        public List<String> permissions;

        public static class MultiTenancyBean {
            /**
             * isEnabled : false
             * resolvers : ["Abp.Web.MultiTenancy.DomaStringenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpHeaderTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpCookieTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null"]
             */

            public boolean isEnabled;
            public List<String> resolvers;
        }
    }
}
